<script type="text/javascript">
$(document).ready(function(){
	var counter = 5;
	var interval = setInterval(function() {
	    counter--;
	    // Display 'counter' wherever you want to display it.
	    $('#counter').html('( '+counter+'s )');
	    if (counter == 0) {
	        // Display a login box
	        window.location.href="<?=site_url('contact')?>";
	        clearInterval(interval);
	    }
	}, 1000);					
});

</script>


<div class="mainContainer">
	<div class="maps">
		<?=$map['html']; ?>
	</div>
	<div class="contact">
		
			<div class="container">
			<div class="col-lg-4 info">			
				<h4>CONTACT</h4>
				<div class="address">Plezantstraat 5,<br> 9100 Sint-Niklaas</div>
				<div class="telephone">Tel.: +32 (0)483 380 098</div>
				<div class="email"><a href="mailto:info@yuhuashop.com">info@yuhuashop.com</a></div>
				<div class="opening">Van maandag tot zaterdag <br>Van 09.00 - 18.00</div>
			</div>
			<div class="col-lg-8 contact-form">
				<div class="row">
					<?php if($r['value'] == 'succeed'){?>
					<div class="alert alert-success" role="alert"><i class="fa fa-check"></i> Uw bericht is succesvol verzonden <a href="<?=site_url()?>contact" class="btn btn-success btn-sm">OK  <span id="counter">( 5s )</span></a></div>
					<?php }else{?>
					<div class="alert alert-danger" role="alert"><i class="fa fa-exclamation-triangle"></i> Verzuimd om uw bericht te versturen, probeer het later opnieuw <a href="<?=site_url()?>contact" class="btn btn-danger btn-sm">OK <span id="counter">( 5s )</span></a></div>
					<?php }?>
				</div>
			</div>
	
	
	
	</div>
</div>
